﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="EditApplicant.aspx.cs" Inherits="BladeTecWebApplication.Admin.EditApplicant" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
    $(function () {

        // Datepicker
        $('#datepicker').datepicker({
            inline: true
        });

        $('#datepicker').datepicker("setDate", $('#MainContent_hfdate0').val());
    }
    )

       function submitAddApplicant() {
       	if (Page_ClientValidate()) {
       		$("#divRequired").hide();
       	} else {
       		$("#divRequired").show();
       	}
        $("#MainContent_hfdate").val($("#datepicker").val());
    }
</script>

<span class="pageTitle">Edit Applicant</span>
<br /><br />

<asp:Panel ID="newApplicantForm" runat="server">
	<div style="color: Red; display:none" id="divRequired">
		* Required<br /><br />
		</div>
	<table cellpadding="0" cellspacing="0" border="0">
	<tr>

	<td valign="top">

	<table cellpadding="0" cellspacing="0" border="0">
		<tr>
            <td>
                First Name:<asp:RequiredFieldValidator ID="rf_fname" runat="server" 
                    ControlToValidate="txtFirstName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width:10px;">
                &nbsp;
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" CssClass="stdTextBox" 
                    Width="150px" />
            </td>
        </tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Last Name:<asp:RequiredFieldValidator ID="rf_lname" runat="server"
					ErrorMessage="*" ControlToValidate="txtLastName" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtLastName" CssClass="stdTextBox" Width="150px" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Phone Number:
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtPhone" CssClass="stdTextBox" width="100px"/>
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Email:<asp:RequiredFieldValidator ID="rf_email" runat="server" ErrorMessage="*" ControlToValidate="txtEmail" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtEmail" CssClass="stdTextBox" Width="149px" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Position:<asp:RequiredFieldValidator ID="rf_position" runat="server"
					ErrorMessage="*" ControlToValidate="ddlPositions" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
			
				<asp:DropDownList ID="ddlPositions" runat="server">
				</asp:DropDownList>
			
			</td>
		</tr>

	    <tr>
            <td>
                &nbsp;</td>
            <td style="width:10px;">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                Key:</td>
            <td style="width:10px;">
                &nbsp;</td>
            <td>
                <asp:Label ID="KeyLabel" runat="server" Text="KeyLabel"></asp:Label>
            </td>
        </tr>

	    <tr>
            <td>
                &nbsp;</td>
            <td style="width:10px;">
                &nbsp;</td>
            <td>
                &nbsp;&nbsp;</td>
        </tr>

	</table>

	</td>
	<td style="width:30px;">
	&nbsp;
	</td>
	<td valign="top">
		Interview Date:<br />
		<div id="datepicker"></div>
		<br />
	</td>
	</tr>

	    <tr>
            <td colspan="3" style="text-align:right; border-top: 1px solid #666;">
                <br />
                <asp:Button ID="btnSaveApplicant" runat="server" 
                    onclick="btnAddApplicant_Click" onclientclick="submitAddApplicant();" 
                    Text="Save" />
            </td>
        </tr>

	</table>

	<asp:HiddenField ID="hfApplicantId0"
		runat="server" />

    <asp:HiddenField ID="hfdate" runat="server" />
    <asp:HiddenField ID="hfdate0" runat="server" />
    </asp:Panel>

    <asp:Panel ID="pnlConfirmationForm" runat="server" Visible="False">
        Applicant <asp:Label ID="lblAName" runat="server" Font-Bold="true"></asp:Label> was updated successfully.
		<br /><br />
		<a href="ViewApplicants.aspx" class="dashboardLink">View Applicants</a>
    </asp:Panel>



</asp:Content>
